package com.qutan.app.core.domain;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 账户
 * Created by pengweiyuan on 5/31/16.
 */
@Entity
@Table(name = "account")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class Account extends IDEntity{

    @Column(columnDefinition = "bigint(11) comment '用户id' ")
    private long user_id;

    @Column(columnDefinition = "decimal(10,2) comment '虚拟金币' ")
    private double money;

    @Column(columnDefinition = "decimal(10,2) comment '钻石个数' ")
    private double diamon;

    public long getUser_id() {
        return user_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getDiamon() {
        return diamon;
    }

    public void setDiamon(double diamon) {
        this.diamon = diamon;
    }
}
